package com.online.customerchatserver;

import com.online.customerchatserver.thread.MessageBatchManageThread;
import com.online.customerchatserver.thread.UuidManageThread;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 *  顾客聊天信息服务入口
 * @author hsc
 */
@EnableEurekaClient
@EnableFeignClients
@SpringBootApplication(exclude = {
        DataSourceAutoConfiguration.class
})
@EnableCircuitBreaker
public class CustomerChatServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(CustomerChatServerApplication.class, args);
        new Thread(new MessageBatchManageThread()).start();
        new Thread(new UuidManageThread()).start();
    }

}
